define(['text!login/logined.html'],
	function(viewTemplate) {
		return Piece.View.extend({
			id: 'login_logined',
			events: {
				"click #login_btn": "login",
				"click #regi": "regi",
			},
			render: function() {
				$(this.el).html(viewTemplate);

				Piece.View.prototype.render.call(this);
				return this;
			},
			onShow: function() {


				//write your business logic here :)
			},

			login: function() {



				this.container.navigateForResult('/login/menu', {
					trigger: true
				}, 'login/logined', this.onGotResult);
			},

			regi: function() {





				this.container.navigateForResult('/login/register', {
					trigger: true
				}, 'login/logined', this.onGotResult);
			}


		}); //view define

	});